package cn.edu.cqupt.exception;

/**
 * 业务代码中应该抛出的异常，交由统一异常处理器处理
 * 不需要捕获
 * @author Andrew
 * @date 2018/1/9
 */
public class ThrowingException extends RuntimeException {

    private String errorCode;

    public ThrowingException(String message) {
        super(message);
    }
    public ThrowingException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}
